package org.coral.server;

import org.coral.net.common.NetConfig;
import org.coral.net.common.TaskThreadPoolConfig;
import org.coral.orm.common.OrmConfig;
import org.coral.server.common.ServerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

//@EnableScheduling
@SpringBootApplication
@ComponentScan({"org.coral"})
@EnableConfigurationProperties({ 
	OrmConfig.class , NetConfig.class,
	ServerConfig.class, TaskThreadPoolConfig.class}) // 开启配置属性支持
//@DubboComponentScan(basePackages = "org.coral.server.game.module")
//@EnableDubbo
public class App 
{
    public static void main( String[] args )
    {
    	try {
			//启动程序
    		SpringApplication.run(App.class, args);
    		
		} catch (Exception e) {
			e.printStackTrace();
		}
    }
}
